

def f2():
    # x = int('abc')  # ValueError
    y = 100 / 0  # ZeriDivisionError
    L = [1, 2, 3, 4]
    # z = L[100]  # IndexError
    print(x, y, z)  # NameError

def f1():
    f2()

try:
    f1()
except ValueError as error:
    print('f1() 函数内部出现了值错误', error)
except IndexError as error:
    print('f1() 函数内部出现了索引错误！', error)
# except:
#     print('有错误发生')
finally:
    print('我一定会执行的')

print('程序正常退出！')

